import {useAxios} from "@/hooks/web/useAxios";

const request = useAxios()

export interface WarnValueSetFormData {
    spo2: NumUn //血氧
    hrLow: NumUn
    hrHigh: NumUn
    tempLow: NumUn
    tempHigh: NumUn
}

// 获取血氧预警值
export const getWarnValueSet = () => {
    return request.get({
        url: '/system/set/getWarnValueSet'
    });
}

// 保存血氧预警值
export const saveWarnValue = (data: WarnValueSetFormData) => {
    return request.post({
        url: '/system/set/saveWarnValue',
        data
    });
}